package com.jjc.android.fragment

import android.view.View
import android.widget.TextView
import com.jjc.android.R
import com.jjc.android.activity.DetectionActivity
import com.jjc.android.base.BaseLazyLoadFragment
import com.jjc.android.view.onClick

class AddSamplingFragment : BaseLazyLoadFragment(){

    companion object{
        fun newInstance():AddSamplingFragment{
            val fragment = AddSamplingFragment()
            fragment.setInflateLazy(true)
            return fragment
        }
    }
    private lateinit var okBtn: TextView

    override fun getLayoutId(): Int = R.layout.fragment_add_sampling

    override fun initView(view: View) {
        super.initView(view)
        initViews(view)
        okBtn.onClick {
            (activity as? DetectionActivity)?.nextStep()
        }
    }

    private fun initViews(view: View) {
        okBtn = view.findViewById(R.id.okBtn)
    }

}